package com.zmc.lostfound.auth.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author ZMC
 * @description 用户实体类
 * @email 2869581855@qq.com
 * @date 2023-07-05 15:17:37
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@TableName("user")
public class UserEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 手机号
     */
    private String phone;

    /**
     * qq邮箱
     */
    private String qqEmail;

    /**
     * 登录密码
     */
    private String password;

    /**
     * 昵称
     */
    private String nickname;

    /**
     * 头像访问链接
     */
    private String imgUrl;

    /**
     * 性别(0：女；1：男)
     */
    private Integer sex;

    /**
     * 封号状态(0:未封号，1:已封号)
     */
    private Integer disableStatus;

    /**
     * 元组创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime gmtCreate;

    /**
     * 元组修改时间
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime gmtModified;

}
